?><?
class cls_setting_item extends cls_entity_item{

  function entity(){return "setting";}

  function data_fields(){
    return array(
      "setting_id",
      "setting_name",
      "setting_value",
      "setting_alias",
      "setting_title",
    );
  }

  function update($data){parent::update(cls_setting_item::entity(),$this->id,$data);$settings=get_entity("cls_setting");$settings->changed();}
  function insert($data){$id=parent::insert(cls_setting_item::entity(),$data);$settings=get_entity("cls_setting");$settings->changed();return $id;}
  function delete($id){parent::delete(cls_setting::entity(),$id);$settings=get_entity("cls_setting");$settings->changed();}
}